<template>
	<div>
		<van-nav-bar :title='name' left-text="返回" 
		right-text="..." left-arrow @click-left="onClickLeft" 
		
		fiexd/>
	</div>
</template>

<script>
	export default {
		name: 'Head',
		props:['name'],
		methods: {
			onClickLeft() {
				//编程式路由跳转
				this.$router.go(-1)
				//自动监听历史路径，返回上一层历史路径
			}
		},
		data(){
			return{
				title:'主页'
			}
		},
		
	}
</script>

<style scoped="">

</style>
